package ThreadBasic.Single;

/**
 * @author yyh
 * @create 2020-10-22 9:54
 */
public class SingleEH {

//    private static SingleEH instance = new SingleEH();
//
//    public SingleEH(){
//
//    }
//
//    public static SingleEH getIntance(){
//        return instance;
//    }

    private static SingleEH instance;

    public SingleEH(){

    }

    public static SingleEH getInstance(){
        if(instance == null){
             instance = new SingleEH();
        }
        return instance;

    }
}
